#include "tools.h"
#include <getch.h>

int get_cmd(char start,char end)
{
	puts("--------------------");
	printf("请输入指令：");
	for(;;)
	{
		char cmd = getch();
		if(start <= cmd && cmd <= end)
		{
			printf("%c\n",cmd);
			return cmd;
		}
	}
}

void anykey_continue(void)//任意键继续
{
	puts("按任意按键继续....");
	stdin->_IO_read_ptr = stdin->_IO_read_end;
	getch();
}



